package com.wx.disparent.mallparent.service;

import com.wx.disparent.mallparent.dao.ParaMapper;
import com.wx.disparent.mallparent.entity.ParaEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ParaService {
    @Autowired
    private ParaMapper paraMapper;

    public List<ParaEntity> findAllPara() {
        List<ParaEntity> paraEntityList = paraMapper.findAllPara();
        return paraEntityList;

    }

    public List<ParaEntity> findAllAcctTypePara(Map<String,String> paraMap) {
        return paraMapper.findAllAcctTypePara(paraMap);
    }


    public ParaEntity findByParaId(String defaultUser) {

        return paraMapper.findByParaId(defaultUser);
    }
}
